extends Area2D

func _on_area_entered(_player: Area2D) -> void:
	get_tree().change_scene_to_file("res://scenes/level_select/level_select.tscn")


func _input(event: InputEvent) -> void:
	if event is InputEventMouseButton and event.pressed:
		if $Sprite2D.get_rect().has_point(to_local(event.position)):
			get_tree().change_scene_to_file("res://scenes/level_select/level_select.tscn")
